<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
    var body=document.getElementsByTagName("body")[0];
    
    var goods=["Nike背包","Adidas运动衫","李宁运动鞋","Kappa外套","360°腰包"];
    for(var i=0; i<goods.length;i++){
        document.write("<hr>"+goods[i])
    }
  
    goods.shift(0,1);
    goods.push("Adidas运动裤")
     for(var i=0; i<goods.length;i++){
       document.write("<hr>"+goods[i])
    }

    goods.splice(1,1,"特步运动鞋")
     for(var i=0; i<goods.length;i++){
        document.write("<hr>"+goods[i])
    }
    goods.join(",")
    
        document.write("<hr>"+goods)

    </script>
</head>
<body>
    
</body>
</html>